package com.city.vodservice;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created with IntelliJ IDEA.
 * User: Cheng
 * Date: 2020/9/10
 * Time: 11:57
 * Description: No Description
 */
@SpringBootApplication(exclude = DataSourceAutoConfiguration.class)
//该模块只做aliyunVod不操作数据库，所以使用exclude = DataSourceAutoConfiguration.class来告诉springboot启动无需加载数据库驱动
@ComponentScan(basePackages = {"com.city"})
//导入不在同一级别包下得工具类common返回对象和swagger
@EnableDiscoveryClient
public class VodServiceApplication {
    public static void main(String[] args) {
        SpringApplication.run(VodServiceApplication.class,args);
    }
}
